package com.acoreful.ackitcloud.api;

import com.acoreful.ackitcloud.api.model.PmsBrandModel;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
import org.springframework.web.service.annotation.PostExchange;

@HttpExchange
public interface PmsBrandApi {


    @GetExchange("brand/list")
    public String list(@RequestParam("pageNum") Integer pageNum,
                        @RequestParam("pageSize") Integer pageSize);
    @GetExchange("brand/{id}")
    public String detail(@PathVariable Long id);
    @PostExchange("brand/create")
    public String create(@RequestBody PmsBrandModel form);
    @PostExchange("brand/update/{id}")
    public String updateById(@PathVariable Long id,@RequestBody PmsBrandModel form);
    @PostExchange("brand/delete/{id}")
    public String deleteById(@PathVariable Long id);
}
